<?php
class ringtone_xmlComponents extends sfComponents{
	
	public function executeResultSearch()
	  {
	  	$name =  $this->getRequest()->getParameter('name');
	  	$tr = new Criteria();
	  	$tr->add(RingtonePeer::NAME, strtr($name, '*', '%') . '%', Criteria::LIKE );
	  	$tr->addOr(RingtonePeer::RBT_STATUS, 1);
	  	$this->list_res =  RingtonePeer::doSelect($tr);
	  	
	  	#return $this->renderPartial('ringtone_xml/searchresult', array('result' => $this->list_res));
	  	
	  }
}